package com.j09.j09gitx.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WorkerController {
    @RequestMapping
    public String queryWorker(){
        return "workers";
    }

    @RequestMapping
    public String countWorker(){
        return "5 workers";
    }

    public int some(){
        return 10;
    }

    public int taiQiu(int num,String qiu){
        if(qiu.equals("qiu")) num = 1;
        return num;
    }
    @RequestMapping("/login")
    public String login(){
        return "/index";
    }
}
